from django.urls import path
from . import views

urlpatterns = [
    path('checkout/', views.checkout_view, name='checkout'),
    path('create/', views.create_order, name='create_order'),
    path('success/<str:order_id>/', views.order_success, name='order_success'),
    path('list/', views.order_list, name='order_list'),
    path('detail/<str:order_id>/', views.order_detail, name='order_detail'),
    path('payment/<str:order_id>/', views.payment, name='payment'),
    path('payment/<str:order_id>/pay/', views.pay_order, name='pay_order'),
    path('payment/<str:order_id>/update-method/', views.update_payment_method, name='update_payment_method'),
    path('cancel/<str:order_id>/', views.cancel_order, name='cancel_order'),
    path('confirm/<str:order_id>/', views.confirm_receipt, name='confirm_receipt'),
    path('add-address/', views.add_address_checkout, name='add_address_checkout'),
    path('get-addresses/', views.get_addresses, name='get_addresses'),
    path('comment/<str:order_item_id>/', views.comment_order_item, name='comment_order_item'),
    path('rebuy/<str:order_id>/', views.rebuy_order, name='rebuy_order'),
] 